package com.uaf.vxalipaybill.feign.service.v1.write;

import javax.validation.Valid;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.uaf.api.vo.req.BaseReqVo;
import com.uaf.api.vo.resp.BaseRespVo;
import com.uaf.vxalipaybill.api.vo.req.VxAlipayBillAuthReqVo;
import com.uaf.vxalipaybill.api.vo.resp.VxAlipayBillAuthRespVo;
import com.uaf.vxalipaybill.feign.service.v1.write.fallback.VxAlipayBillWriteServiceHystrix;

/**
 * @filename IVxAlipayBillReadService.java
 * @description 微信支付宝账单熔断
 * @author 马庆智
 * @date 2021/9/6 12:06
 */
@FeignClient(value = "microservice-gateway",
		fallback = VxAlipayBillWriteServiceHystrix.class)
public interface IVxAlipayBillWriteService {

	/**
	 * 功能描述 微信支付宝账单授权
	 * @param vo 微信支付宝账单请求数据
	 * @return  vxAlipayBillAuthRespVo 返回授权状态
	 * @author马庆智
	 * @date 2021/9/10 10:11
	 */
	@PostMapping("/vxalipaybill/v1/vxAlipayAuth")
	public BaseRespVo<VxAlipayBillAuthRespVo> vxAlipayAuth(@RequestBody @Valid BaseReqVo<VxAlipayBillAuthReqVo> vo);

}
